package org.jeecg.modules.inspect.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.inspect.entity.InsTask;
import org.jeecg.modules.inspect.vo.DepartReportVo;
import org.jeecg.modules.inspect.vo.MonthReportVo;
import org.jeecg.modules.inspect.vo.RoleReportVo;

import java.util.List;

/**
 * @Description: 任务
 * @Author: jeecg-boot
 * @Date:   2023-11-24
 * @Version: V1.0
 */
public interface InsTaskMapper extends BaseMapper<InsTask> {

    List<InsTask> todoList(@Param("departIds") String departIds, @Param("roleIds") String roleIds);
    List<InsTask> todoListByUserName(@Param("userName") String userName);

    IPage<RoleReportVo> roleReport(Page page, @Param("query")RoleReportVo roleReportVo);

    IPage<DepartReportVo> departReport(Page page, @Param("query") DepartReportVo departReportVo);

    IPage<MonthReportVo> monthReport(Page page, @Param("query") MonthReportVo monthReportVo);

}
